package com.liuyu.common.framework.common.constant;

/**
 * 权限常量
 *
 * @author: liuyu
 * @date: 2022/5/30 20:33
 * @version: 1
 */
public class SelfPowerConstants {

    public static final String ACCESS_TOKEN = "accesstoken:";
    /**
     * 加密
     */
    public static final String DESUTIL_KEY = "wang!@#$%";
    /**
     * @description 全局通用
     * @author liuyu
     * @date 2020/4/23 20:59
     * @param null
     * @return
     */
    public static final String ALL_APP_KEY = "all";
    public static final String APP_KEY = "power";
    public static final String BACKEND_PATH = "/backend";
    public static final String FRONT_PATH = "/front";
    public static final String BACKEND_VERSION_PATH = BACKEND_PATH + "/V1";

    /**
     * 消息队列主题
     *
     * @author liuyu
     * @date 2023/3/28 16:30
     * @throws
     * @return
     */
    public static class MqTopic {
        /**
         * 修改岗位权限
         */
        public static final String POWER_CHANGE_GRADE_TASK = "powerChange/gradeTask";
        /**
         * 用户岗位权限
         */
        public static final String POWER_CHANGE_USER_GRADE = "powerChange/userGrade";
        /**
         * 权限路由
         */
        public static final String POWER_CHANGE_ACCESS = "powerChange/access";
        ;
    }

    public class Superior {
        public static final String NO = "0";
        public static final String YES = "1";
    }

    public class TagType {
        //        组织机构
        public static final String ORG = "0";
        //        用户
        public static final String USER = "1";

        //        标签
        public static final String TAG = "2";
    }

    public class InitFlag {
        public static final String NO = "0";
        public static final String YES = "1";
    }

    public class InitType {
        //        企业号
        public static final String QIYE_ORG = "0";
        //        本地
        public static final String LOCAL_ORG = "1";
        //        本地标签
        public static final String LOCAL_TAG = "2";
        /**
         * 企业号标签
         */
        public static final String QIYE_TAG = "3";
    }


    public class Exchange {
        public static final String VERSION_14_1 = "Version 14.1";
    }


    public class AllowRegister {
        /**
         * 不允许自行注册
         */
        public static final String ALLOW_NO = "0";
        /**
         * 允许自行注册
         */
        public static final String ALLOW_YES = "1";
    }

    /**
     * 创建初始岗位类型
     */
    public class CreateDefaultGradeType {
        /**
         * 激活账号时创建
         */
        public static final String ACTIVEACCOUNT = "activeAccount";
        /**
         * 配置权限时创建。
         */
        public static final String CONFIGUSERGRADE = "configUserGrade";

    }

    public class EditType {
        /**
         * 新增
         */
        public static final String ADD = "1";
        /**
         * 删除
         */
        public static final String DELETE = "0";
    }


    public class Language {
        /**
         * 中文
         */
        public static final String zh_CN = "C";
        /**
         * 英文
         */
        public static final String en = "E";
    }

    /**
     * 模板变量名。
     */
    public class TemplatVariable {
        /**
         * 发送对象
         */
        public static final String TOCC = "tocc";
        /**
         * 主题
         */
        public static final String SUBJECT = "subject";

        /**
         * 验证码
         */
        public static final String VALIDATACODE = "validatacode";

        /**
         * 用户名
         */
        public static final String USERNAME = "username";

        /**
         * 称谓
         */
        public static final String APPELLATION = "appellation";

        /**
         * 邮件验证码时效
         */
        public static final String CODEPRESCRIPTION = "codeprescription";

    }


    /**
     * 缓存实例名称
     */
    public class CacheKeys {


        private static final String APP_KEY = "power3";
        /**
         * 邮件相关缓存。
         */
        public static final String MAIL = "mail";
        /**
         * 代码翻译
         */
        public static final String TRANSLATE_CODE = APP_KEY + ":translate:code:";
        public static final String LIST_CODE_SELECT = APP_KEY + ":list:code:select:";
        public static final String COMPANY_VERSION = APP_KEY + ":company:version";
        public static final String CHANGE_PWD_TOKEN = APP_KEY + ":change:pwd:token:";
        public static final String CHANGE_PWD_MOBILE_VERIFY_CODE = APP_KEY + ":change:pwd:mobile:verify:code";

        public static final String DYNAMIC_ROUTE = APP_KEY + "dynamic:router:";

        /**
         * 弱密码
         *
         * @author liuyu
         * @date 2021/6/25 17:14
         * @param null
         * @return
         */
        public static final String WEAK_PASSWORD = APP_KEY + ":weak:password:";
        /**
         * 上传统计结果key
         */
        public static final String STATISTICS_KEY = APP_KEY + ":statics:key:";

        public static final String IMPORT_COMPANY_MODEL = APP_KEY + ":company:model:code:";

        public static final String IMPORT_USER_POWER_MODEL = APP_KEY + "power3:user:power:model:code:";
        public static final String COMPANY_CODE_SERIAL_NO = APP_KEY + ":company:code:serial:no";
        public static final String USER_POWER_SET = APP_KEY + ":user:power:set:";

        public static final String COM_CODE_EXISTS = APP_KEY + ":com:code:exists:";

        public static final String LIST_PERMIT_COM_CODE_AND_COM_NAME = APP_KEY + ":list:permit:com:code:name:";

        public static final String LIST_PERMIT_COMPANY_CODE = APP_KEY + ":list:permit:company:code:";

        public static final String SUB_ALL_COMPANY_CODE = APP_KEY + ":sub:all:company:code:";

        public static final String SUB_COMPANY_CODE_LIST = APP_KEY + ":sub:company:code:list:";

        public static final String LIST_REMOTE_COMPANY = APP_KEY + ":list:remote:company:";

        public static final String UPPER_COMPANY_CODE = APP_KEY + ":upper:company:code:";

        public static final String POWER_CLIENT_ID_APP_KEY = APP_KEY + ":client_id:app:Key:";

        public static final String USER_TOKEN = APP_KEY + ":user:token:";

        /**
         * 鉴权随机码
         */
        public static final String APP_KEY_NONCE = APP_KEY + ":app:key:nonce:";

        public static final String APP_API = APP_KEY + ":app:api:key:";
        public static final String GRADE = APP_KEY + ":grade:";


        public static final String POWER_3_CLOUD_WEAK_PASSWORD_SET = "power3:cloud:weak:password:set";

    }

    /**
     * 换粗键值前缀
     */
    public class CachePrefix {
        private static final String APP_KEY = "power3";
        /**
         * 消息模板
         */
        public static final String MSG_TEMPLATE = APP_KEY + ":msg_template";

        /**
         * 服务配置
         */
        public static final String SERVER_CONFIG = APP_KEY + ":server_config";
        /**
         * 消息配置
         */
        public static final String MSG_CONFIG = APP_KEY + ":msg_config";
        public static final String POWER_3_STATICS_TOTAL = APP_KEY + ":statics:total";
        public static final String POWER_3_STATICS_CACHE = APP_KEY + ":statics:cache";
        public static final String POWER_3_STATICS_REMOTE = APP_KEY + ":statics:remote";
        /**
         * 添加权限对象
         */
        public static final String ADD_POWER_OBJECT = APP_KEY + ":add:power:object";
        /**
         * 添加权限字符串
         */
        public static final String ADD_POWER_STRING = APP_KEY + ":add:power:string";

        public static final String COMPANY_TREE = APP_KEY + ":company:tree";

        public static final String FIND_PERMIT_COM_CODE_HQL = APP_KEY + ":find:permit:com:code:hql";


    }


    /**
     * 业务系统代码
     */
    public class BusinessCode {
        /**
         * 账号
         */
        public static final String ACCOUNT = "account";
        /**
         * 锁定
         */
        public static final String LOCK = "1";
    }

    /**
     * 业务系统代码
     */
    public class TaskDefKey {
        /**
         * 账号_注册
         */
        public static final String ACCOUNT_REGIST = "regist";
        /**
         * 账号_密码重置
         */
        public static final String ACCOUNT_REST = "pdrest";
    }


    public class Lock {
        /**
         * 未锁定
         */
        public static final String UNLOCK = "0";
        /**
         * 锁定
         */
        public static final String LOCK = "1";
    }


    /**
     * 激活标志位
     */
    public class Activie {
        /**
         * 未激活
         */
        public static final String UNACTIVE = "0";
        /**
         * 激活
         */
        public static final String ACTIVE = "1";
    }

    /**
     * 模板类型
     */
    public class MsgType {
        /**
         * 邮件
         */
        public static final String EMAIL = "3";
        /**
         * 短信
         */
        public static final String SMS = "4";
    }


    /**
     * 服务器类型
     */

    public class ServerType {
        /**
         * 文件服务器
         */
        public static final String FILE_SERVER = "0";
        /**
         * 图片服务器
         */
        public static final String IMG_SERVER = "1";
        /**
         * 云存储服务器
         */
        public static final String CLOUDSTORE_SERVER = "2";
        /**
         * 邮件服务器
         */
        public static final String EMAIL_SERVER = "3";


        /**
         * 邮件服务器
         */
        public static final String SMS_SERVER = "4";

    }

    /**
     * 协议号
     */
    public class Protocol {
        /**
         * https
         */
        public static final String HTTPS = "https";
        /**
         * 邮件协议
         */
        public static final String STMP = "smtp";
    }


    /**
     * 验证类型
     */

    public class VerificationType {
        /**
         * 账号验证
         */
        public static final String ACCOUNT_VERIFICATION = "0";
        /**
         * 手机短信验证
         */
        public static final String SMS_VERIFICATION = "1";

        /**
         * 密码重置
         */
        public static final String PWDRESET_VERIFICATION = "2";

    }

    /**
     * 重发标志位
     */
    public class ReSendFlag {
        /**
         * 没有重发
         */
        public static final String UNRESEND = "0";
        /**
         * 重发
         */
        public static final String RESEND = "1";
    }

    /**
     * @author liuyu
     * @description 包含company
     * @date 2020/4/14 20:03
     * @return
     */
    public class UserGradeExtBusinessType {
        /**
         * @description 组织机构私有
         * @author liuyu
         * @date 2020/5/7 8:56
         * @param null
         * @return
         */
        public static final String BUSINESS_TYPE_COMPANY = "COM";
        /**
         * @description 私有字段
         * @author liuyu
         * @date 2020/5/7 8:56
         * @param null
         * @return
         */
        public static final String BUSINESS_TYPE_PRIVATE = "PVT";

        public static final String BUSINESS_TYPE_IN_AND = "INAND";

        public static final String BUSINESS_TYPE_OUT_AND = "OUTAND";

        public static final String BUSINESS_TYPE_IN_OR = "INOR";

        public static final String BUSINESS_TYPE_OUT_OR = "OUTOR";
    }

    public class UserGradeExtend {

        /**
         * @description 允许
         * @author liuyu
         * @date 2020/4/14 18:47
         * @param null
         * @return
         */
        public static final String EXTEND_TYPE_PERMIT = "1";
        /**
         * @description 除外
         * @author liuyu
         * @date 2020/4/14 18:47
         * @param null
         * @return
         */
        public static final String EXTEND_TYPE_EXCEPT = "0";
        /**
         * 允许机构
         */
        public static final String PERMITCOMCODE = "permitCompanyCode";
        /**
         * 除外机构
         */
        public static final String EXCEPTCOMCODE = "exceptCompanyCode";
        /**
         * 允许险种
         */
        public static final String PERMITRISKCODE = "permitRiskCode";
    }


    public class Session {
        /**
         * 用户
         */
        public static final String USERCODE = "UserCode";

        /**
         * 用户名
         */
        public static final String USERNAME = "UserName";

        /**
         * 归属机构
         */
        public static final String COMCODE = "ComCode";


        /**
         * 归属机构中文名称
         */
        public static final String COMCNAME = "ComCName";

        public static final String MENU = "menu";
    }

    /**
     * 功能代码
     */
    public class TaskCode {
        /**
         * 质量管理
         */
        public static final String MYCOM_QualityManage = "MYCOM_QualityManage";
        /**
         * 账号管理
         */
        public static final String CPS_ACCOUNTMANAGE_QUERY = "CPS_AccountManage_Query";
        /**
         * @description 应用管理
         */
        public static final String CPS_APPLICATIONMANAGER = "CPS_ApplicationManager";

        /**
         * @description 公共代码管理
         * @author liuyu
         * @date 2020/4/1 15:05
         * @param null
         * @return
         */
        public static final String CPS_COMMON_CODE_MANAGE = "CPS_COMMON_CODE_MANAGE";

        /**
         * @description 公共代码父类
         * @author liuyu
         * @date 2020/4/15 17:25
         * @param null
         * @return
         */
        public static final String CPS_COMMONCODE = "CPS_CommonCode";

    }

    public class Tree {
        /**
         * @description 删除
         * @author liuyu
         * @date 2020/4/15 17:32
         * @param null
         * @return
         */
        public static final String TREE_OPERATE_DELETE = "0";
        /**
         * @description 新增
         * @author liuyu
         * @date 2020/4/15 17:40
         * @param null
         * @return
         */
        public static final String TREE_OPERATE_ADD = "1";
    }


    public class UnderWriteFlag {
        /**
         * 正常
         */
        public static final String NORMAL = "0";
        /**
         * 通过
         */
        public static final String PASS = "1";
        /**
         * 提交
         */
        public static final String SUBMIT = "2";
    }


    public class NodeName {
        public static final String INSURE = "Insure"; // 投保节点
        /**
         * 一级审核
         */
        public static final String APPROVE_ONE = "ApproveOne";
        /**
         * 二级审核
         */
        public static final String APPROVE_TWO = "ApproveTwo";
        /**
         * 三级审核
         */
        public static final String APPROVE_THREE = "ApproveThree";
        /**
         * 四级审核
         */
        public static final String APPROVE_FOUR = "ApproveFour";
        /**
         * 五级审核
         */
        public static final String APPROVE_FIVE = "ApproveFive";
        /**
         * 六级审核
         */
        public static final String APPROVE_SIX = "ApproveSix";

        public static final String TOBACK = "toBack";
    }


    public static final String TOP_USERCODE = "admin";

    public static final String TOP_COMPANY = "00000000";


    public class LoginPowerFlag {
        public static final String INVAIL = "1";
        public static final String UNINVALID = "0";
    }

    public class BusinessNode {
        public static final String INSURE = "10"; // 投保节点
        public static final String INSURE_CN = "出单申请";
        public static final String APPROVE_ONE = "11"; // 审核节点
        public static final String APPROVE_ONE_CN = "一级审核";
        public static final String APPROVE_TWO = "12"; // 审核节点
        public static final String APPROVE_TWO_CN = "二级审核";
        public static final String APPROVE_THREE = "13"; // 审核节点
        public static final String APPROVE_THREE_CN = "三级审核";
        public static final String APPROVE_FOUR = "14"; // 审核节点
        public static final String APPROVE_FOUR_CN = "四级审核";
        public static final String APPROVE_FIVE = "15"; // 审核节点
        public static final String APPROVE_FIVE_CN = "四级审核";
        public static final String APPROVE_SIX = "16"; // 审核节点
        public static final String APPROVE_SIX_CN = "六级审核";
    }

    public class Node {
        public static final String INSURE = "10"; // 投保节点
        public static final String INSURE_CN = "出单申请节点";
        public static final String APPROVE = "20"; // 审核节点
        public static final String APPROVE_CN = "审核节点";
    }

    public class Flag {
        /**
         * 有效
         */
        public static final String VALID = "1";
        /**
         * 无效
         */
        public static final String INVALID = "0";
    }

    public class ApproveFlag {
        /**
         * --** 核赔标志
         --** 0：初始值
         --** 1：通过
         --** 2：不通过
         --** 3：无需审核
         --** 4：退回修改
         --** 5：提交上级
         --** 7：注销
         --** 8：作废
         --** 9：待审核/审核中

         */
        /**
         * 初始值
         */
        public static final String WAIT_APPROVEFLAG = "0";
        /**
         * 通过
         */
        public static final String MANAL_APPROVEFLAG = "1";
        /**
         * 不通过
         */
        public static final String UN_APPROVEFLAG = "2";
        /**
         * 不需要审核
         */
        public static final String NO_APPROVEFLAG = "3";
        /**
         * 退回修改
         */
        public static final String BACK_APPROVEFLAG = "4";
        /**
         * 提交上级
         */
        public static final String UP_APPROVEFLAG = "5";
        /**
         * 注销
         */
        public static final String CANCELFLAG = "7";
        /**
         * 作废
         */
        public static final String CANCEL_APPROVEFLAG = "8";
        /**
         * 待审核/审核中
         */
        public static final String APPROVE = "9";

    }

    public class State {
        /**
         * 初始状态
         */
        public static final String NORMAL = "0";
        /**
         * 通过
         */
        public static final String MANAL_APPROVEFLAG = "1";
        /**
         * 不通过
         */
        public static final String UN_APPROVEFLAG = "2";
    }

    public class SerialNoType {

        /**
         * 出单申请号
         */
        public static final String CMAIN_ID = "I";
        /**
         * 工作流ID
         */
        public static final String BPMMAIN_ID = "B";
        /**
         * taskId
         */
        public static final String BPMMAIN_TASKID = "T";
        /**
         * businessID
         */
        public static final String BUSINESS_ID = "BS";

    }

    public class AcceptFlag {
        public static final String NOMAL = "0";
        public static final String ACCEPT = "1";
    }

    public class ApproveType {
        public static final String INSURE = "I";
    }

    public class Transitions {
        /**
         * 通过
         */
        public static final String MANAL = "001";

        public static final String MANAL_CN = "通过";
        /**
         * 不通过
         */
        public static final String UN_MANAL = "002";

        public static final String UN_MANAL_CN = "退回";

    }

    public class BpmConstants {
        //任务状态信息
        /**
         * 未处理
         */
        public static final String STATE_TASK_WAIT = "0";
        /**
         * 正在处理
         */
        public static final String STATE_TASK_PENDING = "2";
        /**
         * 处理完成
         */
        public static final String STATE_TASK_HANDLERED = "1";
        /**
         * 注销
         */
        public static final String STATE_TASK_CANCEL = "-1";
        /**
         * 回退
         */
        public static final String STATE_TASK_TOBACK = "3";

        //设置有效或者无效
        /**
         * 有效
         */
        public static final String TASK_VALIDATE = "1";
        /**
         * 无效
         */
        public static final String TASK_NOVALIDATE = "0";

        /**
         * 已接收
         */
        public static final String TASK_ACCEPT = "1";        //任务已接受
        /**
         * 未接收
         */
        public static final String TASK_UNACCEPT = "0";    //任务未接受

        /**
         * 任务已经注销
         */
        public static final String TASK_CANCEL = "1";        //任务已注销
        /**
         * 任务未注销
         */
        public static final String TASK_UNCANCEL = "0";    //任务未注销

    }

    public class AuditStatus {
        public static final String NOMAL = "0"; //未审核

        public static final String AUTOAUDIT = "1"; //自动审核通过

        public static final String MANUALAUDIT = "2"; //自动审核通过

        public static final String UNAUDIT = "3";  //审核不通过
    }


    public class ValidStatus {
        /**
         * 有效
         */
        public static final String VALID = "1";
        /**
         * 无效
         */
        public static final String INVAILD = "0";
    }


    public class CodeType {
        public static final String APP_ID = "appKey";
        public static final String MENUID = "MenuId";
        public static final String USERCODE = "UserCode";
        public static final String LIMIT_USERCODE = "LimitUserCode";
        public static final String REGISTUSER = "RegistUser";
        public static final String COMCODE = "comCode";
        public static final String REGISTEMAIL = "RegistEmail";
        public static final String RISKCODE = "RiskCode";
        public static final String KINDCODE = "KindCode";
        public static final String METHODTASK = "methodTask";
        public static final String REPAIRFACTORY = "RepairFactory";
        public static final String GROUPID = "GroupId";
        public static final String GRADEID = "GradeId";

        public static final String NODEID = "NodeId";
        public static final String NODEIDEXCEPTANYPAY = "NodeIdExceptAnyPay";
        public static final String USERTREE = "UserTree";
        public static final String GROUPTREE = "GroupTree";
        public static final String POWERUSER = "PowerUser";
        public static final String POWERUSERCODE = "PowerUserCode";
        public static final String SCHEDULECOMCODE = "ScheduleComCode";
        public static final String SCHEDULECITYCOMCODE = "ScheduleCityComCode";
        public static final String SCHEDULECOUNTYCOMCODE = "ScheduleCountyComCode";
        public static final String PERMITCOMPANY_TREE = "PermitCompanyTree";
        /**
         * 数据字典
         */
        public static final String DATA_DICTIONARY_TREE = "DataDictionaryTree";
        /**
         * 归属机构转微信机构
         */
        public static final String COM_CODE_TO_WX_PARTY = "ComCodeToWxParty";

        public static final String PERMITRISK_TREE = "PermitRiskTree";
        public static final String CLASSTREE_NOTLIMIT = "ClassTreeNotLimit";
        public static final String PARENTMENU_TREE = "parentMenuTree";
        public static final String TASKCODE = "TaskCode";


        /**
         * 权限任务代码
         */
        public static final String PREMIT_TASKCode = "premitTaskCode";
        public static final String NODECODE = "nodeCode";
        public static final String CLASSCODE = "classCode";
        public static final String MENUCODE = "menuCode";

        /**
         * 质检员
         */
        public static final String POWERUSERLIST = "PowerUserList";

        /**
         * 系统代码
         */
        public static final String APP_KEY = "appKey";

        /**
         * 消息模板_id 用户显示消息模板的ID
         */
        public static final String MSGTEMPLATE_ID = "MsgTemplateID";

        /**
         * 服务_ID 值显示ID
         */
        public static final String SERVER_ID = "ServerID";

    }


    /**
     * 用户类型
     */
    public class UserType {
        /**
         * 员工
         */
        public static final String EMPLOYEE = "0";
        /**
         * 销售人员
         */
        public static final String SALESMAN = "1";
        /**
         * 客户
         */
        public static final String CUSTOMER = "2";
        /**
         * @description 电商用户
         * @author liuyu
         * @date 2020/5/22 16:33
         * @param null
         * @return
         */
        public static final String DS_EMPLOYEE = "9";
    }

    /**
     * 数据返回格式
     */
    public class DataType {
        /**
         * XML格式 采用  Xstream;
         */
        public static final String XML = "xml";
        /**
         * json 采用 gson;
         */

        public static final String JSON = "json";
    }

    /**
     * 联系方式
     */
    public class ContactType {
        /**
         * 邮件
         */
        public static final String EMAIL = "0";
        /**
         * 电话
         */
        public static final String MOBILE = "1";
    }


    public class Type {
        /**
         * URL
         */
        public static final String URL = "URL";
        /**
         * 方法
         */
        public static final String METHOD = "METHOD";
        /**
         * @description
         * @author liuyu
         * @date 2020/4/21 12:29
         * @param null
         * @return
         */
        public static final String GATE_WAY_SKIP = "SKIPMOTHOD";
        /**
         * @description 排除
         * @author liuyu
         * @date 2020/4/21 12:31
         * @param null
         * @return
         */
        public static final String IGNORE = "IGNORE";
        /**
         * @description 默认登陆
         * @author liuyu
         * @date 2020/4/21 12:31
         * @param null
         * @return
         */
        public static final String PERMIT_ALL = "PERMIT_ALL";


    }

    /**
     * 注册信息
     */
    public class RegiseterType {
        /**
         * 用户代码
         */
        public static final String USERCODE = "userCode";
        /**
         * 用户email
         */
        public static final String EMAIL = "email";
        /**
         * 用户手机号
         */
        public static final String MOBILE = "mobile";
    }

    /**
     * 账号的创建方式
     */
    public class AccountSource {
        /**
         * 系统中添加
         */
        public static final String ADD = "0";
        /**
         * 注册
         */
        public static final String REGISTER = "1";
    }


    /**
     * 注册返回信息表。
     */
    public class RegisterRetunCode {
        /**
         * 单独添加用户信息成功
         */
        public static final String ADDUSER_SUCCESS = "1001";
        /**
         * 单独添加用户信息失败-存在
         */
        public static final String ADDUSER_FAILTURE_EXISTS = "1101";

        /**
         * 单独添加账号成功
         */
        public static final long ADD_ACCOUNT_SUCCESS = 1002;

        /**
         * 单独添加账号失败-已经存在
         */
        public static final long ADD_ACCOUNT_FAILURE_EXISTS = 1102;

        /**
         * 同时添加账号成功
         */
        public static final long ADD_USER_ACCOUNT_SUCCESS = 1003;

        /**
         * 同时添加账号失败-
         */
        public static final String ADD_USER_ACCOUNT_FAILURE = "1103";


        /**
         * 数据库错误
         */
        public static final String ADD_ERROR = "1110";

        /**
         * 其他添加错误
         */
        public static final String ADDOTHER_ERROR = "1111";

        /**
         * 用户代码存在
         */
        public static final String USERCODE_EXISTS = "1200";

        /**
         * 用户代码不存在
         */
        public static final String USERCODE_NOT_EXISTS = "1300";

        /**
         * email 存在
         */
        public static final String EMAIL_EXISTS = "1201";

        /**
         * email 不能存在
         */
        public static final String EMAIL_NOT_EXISTS = "1301";
        /**
         * phone 存在
         */
        public static final String PHONE_EXISTS = "1201";

        /**
         * phone 不能存在
         */
        public static final String PHONE_NOT_EXISTS = "1301";
    }


    /**
     * 注册账号的扩展信息
     */
    public class AccountExtend {

        /**
         * @description 归属机构强一致性
         * @author liuyu
         * @date 2020/7/21 9:30
         * @param null
         * @return
         */
        public static final String COM_CODE_FORCE_CONSISTENCY = "comCodeConsistency";
        public static final String USER_GRADE = "userGrade";
        public static final String USER_GRADE_COM_CODE = "userGradeComCode";
        /**
         * 系统代码
         */
        public static final String APP_ID = "appKey";
        /**
         * 归属机构
         */
        public static final String COMCODE = "comCode";

        /**
         * 密码
         */
        public static final String PASSWORD = "password";

        /**
         * @description 用户信息
         * @author liuyu
         * @date 2020/5/25 18:47
         * @param null
         * @return
         */
        public static final String EXTEND_UERCODE = "extend_userCode";
        public static final String DEFAULT_GRADE_CODE = "default_grade_code";
    }

    public class ReturnMsg {
        public static final String SUCCESS = "1";
        public static final String FAIL = "0";
    }

    /**
     * 日志类型
     */
    public class LogType {
        public static final String LOGOUT = "0";
        public static final String LOGIN = "1";
    }


    public class DisplayFlag {
        public static final Integer NO = 0;
        public static final Integer YES = 1;

    }


    public class Rsa {
        public static final String PICC_KEY_PUBLICKEY = "publicKey";
        public static final String PICC_KEY_PRIVATEKEY = "privateKey";
        public static final String PICC_RSA_KEY = "power:rsa:key";
    }

    public class RealseType {

        public static final String DELAY = "1";
    }

    //    岗位权限是否私有
    public class PowerPrivate {
        public static final String YES = "1";
        public static final String NO = "0";
    }

    public class Power {
        public static final String ADD_POWER_USER = "?";
        public static final String ADD_POWER_TASKES = "{taskCodes}";
    }

    /**
     * @author liuyu
     * @description 一致性
     * @date 2020/7/21 9:35
     * @return
     */
    public class Consistency {
        /**
         * @description 强制更改 全部更改，直接删掉原来的权限，重新附上。
         * @author liuyu
         * @date 2020/7/21 9:36
         * @param null
         * @return
         */
        public static final String ALL = "1";

        /**
         * @description
         * @author liuyu 强制更改  部分更改，直接修改原来机构与自己相同部分。
         * @date 2020/7/21 9:37
         * @param null
         * @return
         */
        public static final String SELF = "2";

    }

    public class ApiType {
        public static final String API_RESPONSE = "ApiResponse";
        public static final String API_RESULT = "ApiResponse";
    }

    public class ResponseResult {
        /**
         * 没有权限
         */
        public static final String HAVE_NOT_PERMISSION = "1020";


        /**
         * 投保信息不存在
         */
        public static final String APPLYINFO_NOT_EXISTS = "10010";

        /**
         * 导入错误
         */
        public static final String EXPORT_ERROR = "10020";

        /**
         * 导入文件信息错误
         */
        public static final String EXPORT_INFO_ERROR = "10030";
    }

    /**
     * @author chenxiqing
     * @description
     * @date 2020/5/29 14:31
     * @return
     */
    public class FileUploadConfig {
        public static final String consumerID = "ESALE";
        public static final String optRole = "ES_U_001";
        public static final String optComCode = "44000000";
        public static final String optUserCode = "esale4400";
        public static final String bussCom = "44000000";
        public static final String bussType = "GD_ES";
        public static final String bussNo = "ESALEFILE";
        public static final String riskCode = "";
        public static final String imgType = "|ES_A01|";
        public static final String imgTypeName = "|省电商系统文件|";
    }


    /**
     * session 信息
     */
    public class SessionInfo {
        /**
         * openID
         */
        public static final String OPEN_ID = "OPEN_ID";
        /**
         * 用户代码
         */
        public static final String USER_CODE = "USER_CODE";
        /**
         * 销售人员ID
         */
        public static final String SELLER_ID = "SELLER_ID";
        /**
         * 项目代码
         */
        public static final String PROJECT_CODE = "PROJECT_CODE";
        /**
         * 归属机构
         */
        public static final String COM_CODE = "COM_CODE";
        /**
         * 团队长标志位
         */
        public static final String MASTER_FLAG = "MASTER_FLAG";
    }


    public static final String BASE_PATH = "/v1";
    public static final String SECURITY_SELF_PATH = BASE_PATH + "/front/security";
}
